package com.haidechizi.i18n.code.generator.common.message.file;

import javax.annotation.PostConstruct;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author wangdejun
 */
public abstract class BaseFilePathResolver implements FilePathResolver {

    public static final Map<String, FilePathResolver> resolverHolder = new ConcurrentHashMap<>();

    @PostConstruct
    public void init() {
        resolverHolder.put(name(), this);
    }

}
